<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>AWTK-JAVA: awtk.LocaleInfo类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">AWTK-JAVA
   </div>
   <div id="projectbrief">AWTK JAVA API</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>awtk</b></li><li class="navelem"><a class="el" href="classawtk_1_1_locale_info.html">LocaleInfo</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pub-static-methods">静态 Public 成员函数</a> &#124;
<a href="#pub-attribs">Public 属性</a> &#124;
<a href="classawtk_1_1_locale_info-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">awtk.LocaleInfo类 参考</div>  </div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a9813f15288986be335118b657d5fe813"><td class="memItemLeft" align="right" valign="top"><a id="a9813f15288986be335118b657d5fe813"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>LocaleInfo</b> (long nativeObj)</td></tr>
<tr class="separator:a9813f15288986be335118b657d5fe813"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af9e137e28a5806de3c90eb28f787fff1"><td class="memItemLeft" align="right" valign="top">String&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_locale_info.html#af9e137e28a5806de3c90eb28f787fff1">tr</a> (String text)</td></tr>
<tr class="separator:af9e137e28a5806de3c90eb28f787fff1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2a2bdb09848b5fec529a4b9278e6f593"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_ret.html">Ret</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_locale_info.html#a2a2bdb09848b5fec529a4b9278e6f593">change</a> (String language, String country)</td></tr>
<tr class="separator:a2a2bdb09848b5fec529a4b9278e6f593"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaa4834947f8c30b5e40938109ae265d0"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_ret.html">Ret</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_locale_info.html#aaa4834947f8c30b5e40938109ae265d0">off</a> (int id)</td></tr>
<tr class="separator:aaa4834947f8c30b5e40938109ae265d0"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
静态 Public 成员函数</h2></td></tr>
<tr class="memitem:a71a4e0c64f71e3c77d5d9f1e5780ec2c"><td class="memItemLeft" align="right" valign="top"><a id="a71a4e0c64f71e3c77d5d9f1e5780ec2c"></a>
static <a class="el" href="classawtk_1_1_locale_info.html">LocaleInfo</a>&#160;</td><td class="memItemRight" valign="bottom"><b>cast</b> (long nativeObj)</td></tr>
<tr class="separator:a71a4e0c64f71e3c77d5d9f1e5780ec2c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa43112aea3c6d0f9b86941fe89aef7a2"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classawtk_1_1_locale_info.html">LocaleInfo</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_locale_info.html#aa43112aea3c6d0f9b86941fe89aef7a2">instance</a> ()</td></tr>
<tr class="separator:aa43112aea3c6d0f9b86941fe89aef7a2"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public 属性</h2></td></tr>
<tr class="memitem:a54d17c4662c97f37aa42c2e8955e3fb6"><td class="memItemLeft" align="right" valign="top"><a id="a54d17c4662c97f37aa42c2e8955e3fb6"></a>
long&#160;</td><td class="memItemRight" valign="bottom"><b>nativeObj</b></td></tr>
<tr class="separator:a54d17c4662c97f37aa42c2e8955e3fb6"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>本地化信息。提供字符串翻译数据管理，当前语言改变的事件通知等等。 </p>
</div><h2 class="groupheader">成员函数说明</h2>
<a id="a2a2bdb09848b5fec529a4b9278e6f593"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2a2bdb09848b5fec529a4b9278e6f593">&#9670;&nbsp;</a></span>change()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_ret.html">Ret</a> awtk.LocaleInfo.change </td>
          <td>(</td>
          <td class="paramtype">String&#160;</td>
          <td class="paramname"><em>language</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">String&#160;</td>
          <td class="paramname"><em>country</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置当前的国家和语言。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">language</td><td>语言。 </td></tr>
    <tr><td class="paramname">country</td><td>国家或地区。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="aa43112aea3c6d0f9b86941fe89aef7a2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa43112aea3c6d0f9b86941fe89aef7a2">&#9670;&nbsp;</a></span>instance()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classawtk_1_1_locale_info.html">LocaleInfo</a> awtk.LocaleInfo.instance </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>获取缺省locale_info。</p>
<dl class="section return"><dt>返回</dt><dd>返回locale_info对象。 </dd></dl>

</div>
</div>
<a id="aaa4834947f8c30b5e40938109ae265d0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aaa4834947f8c30b5e40938109ae265d0">&#9670;&nbsp;</a></span>off()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_ret.html">Ret</a> awtk.LocaleInfo.off </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>id</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>注销指定事件的处理函数。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">id</td><td>locale_info_on返回的ID。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="af9e137e28a5806de3c90eb28f787fff1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af9e137e28a5806de3c90eb28f787fff1">&#9670;&nbsp;</a></span>tr()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">String awtk.LocaleInfo.tr </td>
          <td>(</td>
          <td class="paramtype">String&#160;</td>
          <td class="paramname"><em>text</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>翻译字符串。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">text</td><td>待翻译的文本。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回翻译之后的字符串。 </dd></dl>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>output/LocaleInfo.java</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者 &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.13
</small></address>
</body>
</html>
